
const { ccclass, property } = cc._decorator;

@ccclass
export default class PenguinView extends cc.Component {


    @property
    showItem: number = 1;

    @property([cc.Node])
    items: cc.Node[] = []

    start() {
        if (!this.showItem) {
            for (let index = 0; index < this.items.length; index++) {
                const element = this.items[index];
                element.active = false;
            }
        }
    }


}
